
#ifndef _PEGBRUSH_
#define _PEGBRUSH_

#define PBS_SOLID_FILL    0x0001
#define PBS_BMP_FILL      0x0002
#define PBS_NO_ALIAS      0x0004
#define PBS_SIMPLE_ALIAS  0x0008
#define PBS_TRUE_ALIAS    0x0010
#define PBS_UNDERLINE     0x0020
#define PBS_ROUNDED       0x0040
#define PBS_CENTER_LINE   0x0080
#define PBS_PATTERN       0x0100

/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
class PegBrush
{
    friend class PegScreen;

    public:
        PegBrush();
        PegBrush(PEGCOLOR LColor, PEGCOLOR FColor,
            PEGINT BStyle = PBS_NO_ALIAS,
            PEGINT LWidth = 1);

        ~PegBrush();

        void Set(PEGCOLOR LColor, PEGCOLOR FColor,
            PEGINT BStyle = PBS_NO_ALIAS,
            PEGINT LWidth = 1)
            {
                LineColor = LColor;
                FillColor = FColor;
                Style = BStyle;
                Width = LWidth;
            }

        PEGCOLOR LineColor;
        PEGCOLOR FillColor;
        PEGULONG Pattern;
        PEGINT   Width;
        PEGINT   Style;
        PegBitmap *pBitmap;

    private:
        PegBitmap *pSysMap;
};

#endif

